package org.darkforest.common.services.impl;

import org.darkforest.common.services.OrderBillService;
import org.darkforest.dao.mapper.OrderBillMapper;
import org.darkforest.model.OrderBill;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/1/27.
 */
@Service
public class OrderBillServiceImpl implements OrderBillService {

    @Autowired
    private OrderBillMapper orderBillMapper;


    @Override
    public int deleteByPrimaryKey(Integer obNo) {
        return orderBillMapper.deleteByPrimaryKey(obNo);
    }

    @Override
    public int insert(OrderBill record) {
        return orderBillMapper.insert(record);
    }

    @Override
    public int insertSelective(OrderBill record) {
        return orderBillMapper.insertSelective(record);
    }

    @Override
    public OrderBill selectByPrimaryKey(Integer obNo) {
        return orderBillMapper.selectByPrimaryKey(obNo);
    }

    @Override
    public int updateByPrimaryKeySelective(OrderBill record) {
        return orderBillMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(OrderBill record) {
        return orderBillMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<OrderBill> selectByCondition(OrderBill orderBill) {
        return orderBillMapper.selectByCondition(orderBill);
    }
}
